package com.pb.wkflow.api.mapper;

import com.pb.wkflow.api.entity.WfSysProcDefFieldEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 流程定义字段配置Mapper
 * @author 苗益辉
 * @date 2023/4/18 14:05
 */
@Mapper
@Repository
public interface WfSysProcDefFieldMapper {

    /**
     * 查询
     * @param procDefKey procDefKey
     * @return WfSysProcDefFieldEntity
     */
    WfSysProcDefFieldEntity selectOne(@Param("procDefKey") String procDefKey, @Param("tenantId") String tenantId);

    /**
     * 新增
     * @param entity entity
     */
    void insert(WfSysProcDefFieldEntity entity);

    /**
     * 更新
     * @param entity entity
     */
    void update(WfSysProcDefFieldEntity entity);

    /**
     * 删除
     * @param procDefKey procDefKey
     */
    void delete(@Param("procDefKey") String procDefKey, @Param("tenantId") String tenantId);

    void updateProcInfo(@Param("procDefName") String procDefName, @Param("procDefKey") String procDefKey);

    void updateProcDef(@Param("procDefName") String procDefName, @Param("procDefKey") String procDefKey);
}
